package com.zhongen.codegen;

import com.zhongen.common.datasource.annotation.EnableDynamicDataSource;
import com.zhongen.common.security.annotation.EnablePigResourceServer;
import com.zhongen.common.security.service.SimpleUserInfoCoordinator;
import com.zhongen.common.security.service.UserInfoCoordinator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * 代码生成模块
 */
@EnableDynamicDataSource
@EnablePigResourceServer
@SpringBootApplication
public class CodeGenApplication {

	public static void main(String[] args) {
		SpringApplication.run(CodeGenApplication.class, args);
	}

	@Bean
	public UserInfoCoordinator userInfoCoordinator() {
		return new SimpleUserInfoCoordinator();
	}

}
